#include <event2/event.h>
#include <iostream>
using namespace std;

int main(int argc, char const *argv[]){
#ifdef WIN32
        //初始化socket库
        WSADATA wsa;
        WSAStartup(MAKEWORD(2,2), &wsa);
#endif       

        cout<<"test libevent !" <<endl;
        //创建libevent的上下文
        event_base *base = event_base_new();
        if(base){
                cout<<"event_base_new success!"<<endl;
        }

        return 0;
}